function config = setDatasets( config )

dataset_root = config.dataset_root;

if_ADL = 1;
if_EDSH = 1;
if_GTECH = 1;

    j = 0;

    if if_ADL
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/no1/' ], ...
                                            [ dataset_root 'msk_fg/no1/'] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/no2/' ] , ...
                                            [ dataset_root 'msk_fg/no2/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/no3/' ] , ...
                                            [ dataset_root 'msk_fg/no3/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/no4/' ] , ...
                                            [ dataset_root 'msk_fg/no4/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/no5/' ] , ...
                                            [ dataset_root 'msk_fg/no5/' ] );
    end

    if 0
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_01/' ] , ...
                                            [ dataset_root 'msk_fg/P_01/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_02/' ] , ...
                                            [ dataset_root 'msk_fg/P_02/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_03/' ] , ...
                                            [ dataset_root 'msk_fg/P_03/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_04/' ] , ...
                                            [ dataset_root 'msk_fg/P_04/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_05/' ] , ...
                                            [ dataset_root 'msk_fg/P_05/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_06/' ] , ...
                                            [ dataset_root 'msk_fg/P_06/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/P_07/' ] , ...
                                            [ dataset_root 'msk_fg/P_07/' ] );
    end

    if if_EDSH
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/GOPR2384_cab/' ] , ...
                                            [ dataset_root 'msk_fg/GOPR2384_cab/' ] );
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/GOPR2382_cab/' ] , ...
                                            [ dataset_root 'msk_fg/GOPR2382_cab/' ] );
        j = j+1;                                
        config.datasets{j} = initDataset(   [ dataset_root 'vid/GOPR2393_cab/' ] , ...
                                             [ dataset_root 'msk_fg/GOPR2393_cab/' ] );
    end
    % 
    % j = j+1;
    % config.datasets{j} = initDataset(   [ dataset_root 'vid/S1_Cheese_C1_cab/' ] , ...
    %                                     [ dataset_root 'msk_fg/S1_Cheese_C1_cab/' ] );

    if if_GTECH
        j = j+1;
        config.datasets{j} = initDataset(   [ dataset_root 'vid/S1_Coffee_C1_cab/' ] , ...
                                            [ dataset_root 'msk_fg/S1_Coffee_C1_cab/' ] );
        % j = j+1;                                
        % config.datasets{j} = initDataset(   [ dataset_root 'vid/S1_CofHoney_C1_cab/' ] , ...
        %                                     [ dataset_root 'msk_fg/S1_CofHoney_C1_cab/' ] );
        % j = j+1;                                
        % config.datasets{j} = initDataset(   [ dataset_root 'vid/S1_Hotdog_C1_cab/' ] , ...
        %                                     [ dataset_root 'msk_fg/S1_Hotdog_C1_cab/' ] );
        j = j+1;                                
        config.datasets{j} = initDataset(   [ dataset_root 'vid/S1_Tea_C1_cab/' ] , ...
                                            [ dataset_root 'msk_fg/S1_Tea_C1_cab/' ] );
        j = j+1;                                
        config.datasets{j} = initDataset(   [ dataset_root 'vid/S1_Peanut_C1_cab/' ] , ...
                                            [ dataset_root 'msk_fg/S1_Peanut_C1_cab/' ] );
    end


end